<?php

/**
 * SearchForm class.
 * SearchForm is the data structure for keeping
 * user search form data. It is used by the 'search' action of 'ReportController'.
 */
class NoticeSearchForm extends CFormModel
{
	public $title;
	public $start_date;
	public $end_date;


	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
			//array('start_date, end_date', 'required'),
			array('title', 'safe'),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'title'=>'标题',
			//'start_date'=>'开始日期',
		//	'end_date'=>'结束日期',
		);
	}

}
